package com.yonyougov.devops.cruxcisupport.appenv.dto.config;

import com.yonyougov.devops.fwc.api.dto.BaseRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigInteger;

@Data
@ApiModel(value = "应用环境变量添加")
public class AppEnvConfigItemAddRequestDto extends BaseRequestDto {

    @NotEmpty
    @ApiModelProperty(required = true, name = "环境变量名称")
    private String name;

    @NotEmpty
    @ApiModelProperty(required = true, name = "环境变量值")
    private String value;

    @NotNull
    @ApiModelProperty(required = true, name = "应用环境主键")
    private BigInteger appEnvId;
}
